﻿
@extends('layout.home')

	@section('content')
	<!-- 新闻列表样式 -->
	<link href="/public/home/Css/listreset.css" rel="stylesheet" />
    <link href="/public/home/Css/listnews.css" rel="stylesheet" />
		<div class="main-container">
            <div class="banner"  style="background-image: url(/public/home/images/1e9aa9f19223806af9d57d56bfcdb3221476095196.jpg)">
                <a href="http://www.dota2.com.cn/battlecup/fall2016/" target="_blank"></a>
            </div>
            <div class="main clearfix">
                <div class="news">
                    <div class="news_header">
                        <span>您的位置：</span>
                        <a href="{{url('/home')}}">首页</a>
                        <span>></span>
                        <a>{{$cates->name}}</a>
                    </div>
                    <!-- 主体内容 -->
                    <div class="news_start">
                    	<!-- 判断是否有置顶 -->
                        <div class="news_hot">
                        	<!-- 置顶热搜 -->
                            <ul class="lists clearfix">
                            	<!-- 置顶 -->
                            	
								<li class="item">
									<a href="{{url('/home/news',['id'=>$nnews->id])}}" target="_blank">
                                        <i class="icon icon-new"></i>
										<span><img src="/public/newsimage/{{$nnews->pic}}" alt="{{$nnews->title}}"></span>
                                        <span class="filter"></span>
										<span class="desc">{{$nnews->title}}</span>
									</a>
								</li>
								
								<!-- 最新发布 -->
								@foreach($tnews as $tk=>$tv)
								<li class="item">
									<a href="{{url('/home/news',['id'=>$tv->id])}}" target="_blank">
								                                        <i class="icon icon-hot"></i>
										<span><img src="/public/newsimage/{{$tv->pic}}" alt="{{$tv->title}}"></span>
								                                        <span class="filter"></span>
										<span class="desc">{{$tv->title}}</span>
									</a>
								</li>
								@endforeach
							</ul>
                        </div>
                        
                        <div class="news_lists" id="news_lists" style="border-top: 1px solid #EBEBEB;">
                            <ul class="panes">
                            @foreach($news as $nk=>$nv)
                                <li class="pane active">
									<a href="{{url('/home/news',['id'=>$nv->id])}}" class="item" target="_blank">
										<div class="news_logo"><img src="/public/newsimage/{{$nv->pic}}" alt="{{$nv->title}}"></div>
										<div class="news_msg">
											<h2 class="title" style="font: 16px/1.875 'Microsoft YaHei';">{{$nv->title}}</h2>
											<p class="content" style="color: #666;font: 16px/1.875 'Microsoft YaHei';">{{$nv->contents}}</p>
											<p class="date" style="font: 16px/1.875 'Microsoft YaHei';">{{date('Y-m-d H:i:s',$nv->time)}}</p>
										</div>
									</a>							
								</li>
							@endforeach	
                                <li class="pane">
                                </li>
                                <li class="pane">
                                </li>
                                <li class="pane">
                                </li>
                            </ul>
                        </div>
                        <div class="btn_more" id="btn_more">
							<div class="nav nav-prev"><a href="javascript:;" title="上一页"><i class="icon icon-left-arrow"></i></a></div><li class="page active"><a href="javascript:;" title="第1页">1</a></li><li class="page"><a href="/news/index2.htm" title="第2页">2</a></li><li class="page"><a href="/news/index3.htm" title="第3页">3</a></li><li class="page"><a href="/news/index4.htm" title="第4页">4</a></li><li class="page"><a href="/news/index5.htm" title="第5页">5</a></li><li class="page"><a href="/news/index6.htm" title="第6页">6</a></li><li class="page"><a href="/news/index7.htm" title="第7页">7</a></li><li class="page dots active"><i class="icon icon-dot"></i></li><div class="nav nav-next"><a href="/news/index2.htm"><i class="icon icon-right-arrow"></i></a></div>                        </div>
                    </div>
                    </div>

                    <div class="sidebar" id="sidebar">
                    <div class="bar">
                        <div class="btns">
                            <a href="http://pay.wanmei.com/new/dota2/index.do?inGame=0" target="_blank" class="btn btn-recharge"></a>
                            <a href="http://www.dota2.com.cn/download/" target="_blank" class="btn btn-download"></a>
                            <a href="http://passport.wanmei.com/reg/?s=dota2" target="_blank" class="btn btn-signup"></a>
                        </div>
                        <div class="more">
                            <a href="http://act.dota2.com.cn/match" target="_blank" class="btn btn-match"></a>
                            <a href="http://www.dota2.com.cn/activity/gameevent/index.htm" target="_blank" class="btn btn-events"></a>
                            <a href="http://bbs.dota2.com.cn/" target="_blank" class="btn btn-bbs"></a>
                        </div>

                    </div>
                </div>
                <div class="anchor" id="anchor">
                    <a href="javascript:(0)">
                        <i class="icon icon-anchor"></i>
                    </a>
                </div>
                 

                </div>
            </div>
        </div>        
	@endsection